import { http } from '@/utils/http/axios';

/**
 * @description: 会员卡管理
 */
export function list(params) {
    return http.request({
        url: '/card/list',
        method: 'GET',
        params
    });
}

/**
 * @description: 会员卡信息
 */
export function info(params) {
    return http.request({
        url: '/card/info',
        method: 'GET',
        params
    });
}

/**
 * @description: 会员卡编辑
 */
export function edit(params) {
    return http.request({
        url: '/card/edit',
        method: 'POST',
        params
    });
}

/**
 * @description: 发放会员卡
 */
export function grent(params) {
    return http.request({
        url: '/card/membershipcardlingqus',
        method: 'POST',
        params
    });
}

/**
 * @description: 会员卡发放记录
 */
export function record(params) {
    return http.request({
        url: '/card/record',
        method: 'POST',
        params
    });
}

/**
 * @description: 会员卡使用记录
 */
export function userecord(params) {
    return http.request({
        url: '/card/userecord',
        method: 'POST',
        params
    });
}
